// eslint-disable-next-line
import {
  BasicLayout,
  BlankLayout,
} from '@/layouts';
import {
  bxAnaalyse,
} from '@/core/icons';

const RouteView = {
  name: 'RouteView',
  render: h => h('router-view'),
};

import marketManagementrRouter from './modules/marketManagementrRouter';//市场管理


export const asyncRouterMap = [
  {
    path: '/',
    name: 'index',
    component:window.__POWERED_BY_QIANKUN__? BlankLayout : BasicLayout,
    redirect: '/marketManagement',
    children: [
      marketManagementrRouter,
    ],
  },
  {
    path: '/child',
    name: 'index1',
    component:window.__POWERED_BY_QIANKUN__? BlankLayout : BasicLayout,
    redirect: '/marketManagement',
    children: [
      marketManagementrRouter,
    ],
  },
  {
    path: '*',
    redirect: '/404',
    hidden: true,
  },
];

/**
 * 基础路由
 * @type { *[] }
 */
export const constantRouterMap = [
  {
    path: '/user',
    name: 'user',
    component: BlankLayout,
    redirect: '/user/loginAdmin',
    hidden: true,
    children: [
      {
        path: 'loginAdmin',
        name: 'loginAdmin',
        component: () => import( /* webpackChunkName: "user" */ '@/views/user/LoginAdmin'),
      },
    ],
  },
  {
    path: '/404',
    component: () => import( /* webpackChunkName: "fail" */ '@/views/404'),
  },
];